<template>
  <div>
    <h2>我是About</h2>
  </div>
</template>

<script>
export default {
  name: "About",
  beforeRouteEnter(to,from,next){
    console.log("About已通过路由方式进入...")
    if (to.meta.isAuth){
      if (localStorage.getItem('dev') === 'xccit'){
        next()
        document.title = to.meta.title
      }else{
        alert("权限不够,无法查看!")
      }
    }
  },
  beforeRouteLeave(to,from,next){
    console.log("About已通过路由方式离开...")
    next()
  }
}
</script>

<style scoped>

</style>